package com.mysoft.gfyx.common.time;

import java.util.Date;

public interface TimeService {
    String convertYearToTimeString(int year);
    String convertYearToNextYearTimeString(int year);

    String convertTimeFormat(String time, String fromFormat, String toFormat);

    Date getTodayZeroClock();

    String getLatestPeriod(Object dateStr);

    Date getMonthFirstDay();

    String getPastDate(int past, Date date);

    Date getDateAfter(int past, Date date);

    String getYearsAgo(int year,Date date, String formatter);
    String getMonthAgo(int month, Date date, String formatter);

    boolean isRecent(String dateStr, int month);

    Date parseDateStr(String time);
}
